//
//  LMEPageDetailModel.m
//  WelfareManager
//
//  Created by longmin on 17/3/4.
//  Copyright © 2017年 timtian. All rights reserved.
//

#import "LMEPageDetailModel.h"
#import "LMEGoodsModel.h"

@implementation LMEPageDetailModel

+ (NSArray *)mj_ignoredPropertyNames {
    return @[@"tempImage"];
}


+ (instancetype)pageDetailWithGoodsModel:(LMEGoodsModel *)goodsModel {
    
    LMEPageDetailModel *pageDetail = [[LMEPageDetailModel alloc] init];
    
    pageDetail.price = goodsModel.price;
    pageDetail.market_price = goodsModel.market_price;
    pageDetail.title = goodsModel.title;
    pageDetail.pic = goodsModel.pic;
    pageDetail.stock = goodsModel.stock;
    pageDetail.configure = goodsModel.configure;
    pageDetail.min_order = @"100";
    
    return pageDetail;
}

- (NSString *)description {
    return [self mj_JSONString];
}

@end
